package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 09.06.14
 * Time: 17:25
 * To change this template use File | Settings | File Templates.
 */
public class SectionTicketsPage extends BasePage {
    public static final String URL = "http://rozetka.com.ua/travel/";
    public SectionTicketsPage(WebDriver driver) {
        super(driver, URL);
    }
    public boolean isLoaded() {
        return driver.findElements(By.xpath("//div[@class='label' and contains(text(),'Какой маршрут?')]")).size() == 1;
      }

    @Override
    public String getURL() {
        return URL;
    }


}
